To retrieve the incident states of the incidents modified within a specific time period.
GET
https://Logpoint-IP/incident_states
Parameter |
Value Type |
Description |
|---|---|---|
username |
String |
Logpoint username |
secret_key |
String |
Access key to uniquely identify an authorized user. Go to Finding the Access Key for information on retrieving it. |
requestData |
JSON Object |
A JSON objects containing the following parameters: ts_from: Start timestamp value in Unix time format. ts_to: End timestamp value in Unix time format. |
Parameters are data sent along with the request to retrieve information. It should be included in the request body as raw text. Content-Type, Content-Length, and Host must be passed in the request header. Content-Type should be application/json.
{
"username": "John",
"secret_key": "a1b2c3d4e5f6g7h8i9j0k1",
"requestData": {
"version": "0.1",
"ts_from": 1633085529,
"ts_to": 1640595047
}
}
![]()
Incident State Request using Postman.¶
curl --location --request GET 'https://10.45.10.172/incident_states' \
--header 'Content-Type: application/json' \
--data '{
"username": "John",
"secret_key": "a1b2c3d4e5f6g7h8i9j0k1",
"requestData": {
"version": "0.1",
"ts_from": 1633085529,
"ts_to": 1683624378
}
}'
{
"success": true,
"incidents": [state1, state2, …, stateN]
}
Response Parameters |
Value Type |
Description |
|---|---|---|
success |
Boolean |
Returns True if the API call is successful; otherwise it returns False. |
incidents |
Array of objects |
Contains a list of incident states that were modified within the specified time period. |
{
"id": "61c97d96f2adef60601f5a66",
"name": "test",
"assigned_to": "5bebd9fdd8aaa42840edc853",
"status": "resolved",
"comments": [
{
"title": "admin",
"comment": "Resolved",
"time": 1640594922
},
{
"title": "admin",
"comment": "Verified and Necessary Action applied",
"time": 1640594947
},
{
"title": "admin",
"comment": "Completed",
"time": 1640595047
}
]
}
We are glad this guide helped.
Please don't include any personal information in your comment
Contact Support